export default function SvgIcon({
  name,
  prefix = "icon",
  color = "#333",
  className = ""
}: {
  name: string;
  prefix?: string;
  color?: string;
  className?: string;
}) {
  const symbolId = `#${prefix}-${name}`;
  return (
    <svg aria-hidden="true" className={className}>
      <use href={symbolId} fill={color} />
    </svg>
  );
}
